
/*通用js*/
function tips(param){
	   var d=dialog({
            	content: param,
                icon: 'succeed',
                fixed: true,
                lock: true,
            });
            d.show();
            setTimeout(function () {
			    d.close().remove();
			}, 2000);
	        return false;
}  
 function isNum(num){
       var reNum =/^\d+(?=\.{0,1}\d+$|$)/;
       return (reNum.test(num));
 }
 
//全选
 function selectAll(param){ 
         // 如果全选按钮状态是未选中  
         if ($(param).attr("checked") == "checked"){  
             $(param).parent().parent().find("input").attr("checked","checked");  
         }else{   
             $(param).parent().parent().find("input").removeAttr("checked");    
         } 
 }